public class Dog extends Animal{//继承Animal

    public Dog() {
        super("旺财",2);
        System.out.println("Dog不带参数的构造方法");
    }

}
